# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-atom
_pkgname=atom
pkgver=0.11.0
pkgrel=1
pkgdesc='Memory efficient Python objects.'
arch=('x86_64' 'aarch64')
url='https://github.com/nucleic/atom'
license=('BSD' 'custom:unknown')
depends=('python')
makedepends=('python-setuptools' 'python-cppy')
source=("https://github.com/nucleic/atom/archive/$pkgver.tar.gz")
sha512sums=('d496e0cb677f1d0757c06d4e900b34e291c6950f753647934bb59cf4abf23d80f63f4fc746319eb96e8722bbb49accceb70facaee103ea5d64e56e4df7281db9')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

